import request from '@/utils/request'

// 查询列表
export function listPointgiftCard(query) {
  return request({
    url: '/pointGiftCard/pageData',
    method: 'get',
    params: query
  })
}

// 新增卡密
export function addPointgiftCard(data) {
  return request({
    url: '/pointGiftCard/add',
    method: 'post',
    data
  })
}

// 卡详情
export function detailPointgiftCard(data) {
  return request({
    url: '/pointGiftCard/detail',
    method: 'get',
    params: data
  })
}

export function detailByCardNumber(data) {
  return request({
    url: '/pointGiftCard/detailByCardNumber',
    method: 'get',
    params: data
  })
}

// 算力兑换卡导出
export function exportPointGiftCard(data) {
  return request({
    url: '/pointGiftCard/export',
    method: 'post',
    params: data
  })
}

// 查看导出任务
export function listExportFile(data) {
  return request({
    url: '/exportFile/pageData',
    method: 'get',
    params: data
  })
}

